ef0835
@@ -23,6 +23,7 @@
import javax.persistence.MappedSuperclass;
 import javax.persistence.Transient;
 
 import org.springframework.data.domain.Persistable;
+import org.springframework.util.ClassUtils;
 
 /**
  * Abstract base class for entities. Allows parameterization of id type, chooses auto-generation and implements
@@ -93,7 +94,7 @@
public abstract class AbstractPersistable<PK extends Serializable> implements Pe
 			return true;
 		}
 
-		if (!getClass().equals(obj.getClass())) {
+		if (!getClass().equals(ClassUtils.getUserClass(obj))) {
 			return false;
 		}
 
